package com.zcz.authentication.mapper;

import com.zcz.authentication.bean.Perms;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface PermsMapper extends Mapper<Perms>{
	@Select("select p.*, q.url,q.quanxian from perms p\r\n" + 
			"	LEFT JOIN quanxian q on p.quanxianid = q.id\r\n" + 
			"where p.userid = #{userid}")
	public List<Perms> list(String userid);
}
